package com.ssh.tts.model;

public class Train {
	private Integer TRAIN_ID;  //id
	private String  TRAIN_TRAINID;  //trainid
	private String  TRAIN_TO;  //to
	private String  TRAIN_FROM;  //from
	private String  TRAIN_DATE;  //date
	private String  TRAIN_TIME;  //time
	/** 票价 */
	private Integer TRAIN_FARES;  //fares
	
	public Train() {}
	
	public Train(Integer tRAIN_ID, String tRAIN_TRAINID, String tRAIN_TO, String tRAIN_FROM, String tRAIN_DATE,
			String tRAIN_TIME, Integer tRAIN_FARES) {
		super();
		TRAIN_ID = tRAIN_ID;
		TRAIN_TRAINID = tRAIN_TRAINID;
		TRAIN_TO = tRAIN_TO;
		TRAIN_FROM = tRAIN_FROM;
		TRAIN_DATE = tRAIN_DATE;
		TRAIN_TIME = tRAIN_TIME;
		TRAIN_FARES = tRAIN_FARES;
	}

	public Integer getTRAIN_ID() {
		return TRAIN_ID;
	}
	public void setTRAIN_ID(Integer tRAIN_ID) {
		TRAIN_ID = tRAIN_ID;
	}
	public String getTRAIN_TRAINID() {
		return TRAIN_TRAINID;
	}
	public void setTRAIN_TRAINID(String tRAIN_TRAINID) {
		TRAIN_TRAINID = tRAIN_TRAINID;
	}
	public String getTRAIN_TO() {
		return TRAIN_TO;
	}
	public void setTRAIN_TO(String tRAIN_TO) {
		TRAIN_TO = tRAIN_TO;
	}
	public String getTRAIN_FROM() {
		return TRAIN_FROM;
	}
	public void setTRAIN_FROM(String tRAIN_FROM) {
		TRAIN_FROM = tRAIN_FROM;
	}
	public String getTRAIN_DATE() {
		return TRAIN_DATE;
	}
	public void setTRAIN_DATE(String tRAIN_DATE) {
		TRAIN_DATE = tRAIN_DATE;
	}
	public String getTRAIN_TIME() {
		return TRAIN_TIME;
	}
	public void setTRAIN_TIME(String tRAIN_TIME) {
		TRAIN_TIME = tRAIN_TIME;
	}
	public Integer getTRAIN_FARES() {
		return TRAIN_FARES;
	}
	public void setTRAIN_FARES(Integer tRAIN_FARES) {
		TRAIN_FARES = tRAIN_FARES;
	}

	@Override
	public String toString() {
		return "火车车次:" + TRAIN_TRAINID + ", 出发地:" + TRAIN_FROM
				+ ", 目的地:" + TRAIN_TO + ", 发车日期:" + TRAIN_DATE + ", 发车时间:" + TRAIN_TIME
				+ ", 车票价格:" + TRAIN_FARES + "";
	}
	
}
